<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <!-- <link rel="icon" href="data:,"> -->
</head>

<body>

    <div class="container">
        
        <!-- 登录 -->
        <div class="login">
            <div class="text">
                <a href="http://110.40.209.26:8888/a/b/test1.html">点我</a>
                <img src="/img/2.jpg" alt="">
            </div>
            <div class="login_from">
                <form action="./a/b/test1.html" method="get">
                <label for="login_username">用户名</label>
                <input type="text" id="login_username" placeholder="请输入用户名" name="用户名">
                <label for="login_pwd">密码</label>
                <input type="password" id="login_pwd" placeholder="请输入密码" name="密码">
                <input type="submit" id="login_pwd">
                </form>
                <!-- <form action="/a/b/test1.html" method="post">
                name: <input type="text" name="name"><br>
                password: <input type="password" name="passwd"><br>
                <input type="submit" value="提交">
                </form> -->
                <!-- <button>登录</button> -->
            </div>
        </div>
    </div>

    <style>
        * {
            margin: 0px;
            padding: 0px;
        }
        
        .container {
            width: 100vw;
            height: 100vh;
            /* wiewport width */
        }
        
        .register,
        .login {
            width: 45%;
            height: 40%;
            border: 3px solid ghostwhite;
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
            border-radius: 8px;
            box-shadow: 10px 10px 10px gainsboro;
            background-color: rgb(71, 243, 189);
            transition: all 1s linear;
        }
        
        .register .text,
        .login .text {
            width: 26%;
            height: 100%;
            border-right: 3px solid gainsboro;
            float: left;
            text-align: center;
        }
        
        .register .text a,
        .login .text a {
            text-decoration: none;
            color: black;
            font-size: 14px;
            display: block;
            margin-top: 10px;
            font-family: 黑体;
        }
        
        .register .text img,
        .login .text img {
            width: 100%;
            height: 90%;
            margin-top: 11px;
        }
        
        .register_from,
        .login_from {
            width: 72%;
            height: 100%;
            float: right;
            text-align: center;
        }
        
        .register_from label,
        .login_from label {
            display: inline-block;
            width: 16%;
            height: 35px;
            text-align: center;
        }
        
        .register_from input,
        .login_from input {
            width: 75%;
            height: 35px;
            margin-top: 30px;
            outline: none;
            border: 2px solid black;
            padding-left: 5px;
        }
        
        .register_from button,
        .login_from button {
            width: 80px;
            height: 35px;
            margin-top: 30px;
            border-radius: 5px;
            outline: none;
            cursor: pointer;
            background-color: aquamarine;
            color: black;
            border: none;
            font-family: 楷体;
            font-size: 18px;
            font-weight: 600;
        }
    </style>

    <script type="text/javascript">
        var ele1 = document.getElementsByClassName("login")[0];
        var ele = document.getElementsByClassName("register")[0];


        //获取两个div
        function change_login() {
            ele1.style.zIndex = 999;
            ele.style.zIndex = 1;
        }

        function change_register() {
            ele1.style.zIndex = 1;
            ele.style.zIndex = 999;
        }
    </script>


</body>

</html>